package com.lcx.test;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class Main extends Application {
    public static Stage stage;
    @Override
    public void start(Stage primaryStage) throws Exception {
        stage = primaryStage;
        Parent p = FXMLLoader.load(getClass().getResource("/root.fxml"));
        Scene scene = new Scene(p);
        primaryStage.setWidth(400);
        primaryStage.setHeight(300);
        primaryStage.setScene(scene);
        primaryStage.setTitle("JavaFX WebView 开发框架");
        primaryStage.show();
    }

    public static void main(String args[]){
        launch(args);
    }
}
